﻿using System.ComponentModel.Composition;
using Easy.Plugin.Interface;

namespace Easy.ServiceLocator.Unity.Plugins
{
    [Export(typeof(IImportServiceLocatorPlugin))]
    class ImportServiceLocatorPlugin : IImportServiceLocatorPlugin
    {
        public void Import(Microsoft.Practices.ServiceLocation.IServiceLocator serviceLocator)
        {
            EasyServiceLocator.SetServiceLocator(serviceLocator);
        }
    }
}
